Camera movement control method and apparatus, device, and storage medium

ABSTRACT

Some aspects of the disclosure provide a method for camera operation control in an electronic device. The method includes obtaining, based on a plurality of frames associated with a target time slice, a first target parameter to be met by a camera of a virtual camera system in the target time slice. Then, the method includes determining a target operation speed of the camera in the target time slice at least partially based on the first target parameter and a time-speed change magnification curve, and controlling the camera to operate based on the target operation speed. Apparatus and non-transitory computer-readable storage medium counterpart embodiments are also contemplated.

RELATED APPLICATIONS

This application is a continuation of International Application No.PCT/CN2020/126463, entitled “CAMERA MOVEMENT CONTROL METHOD ANDAPPARATUS, DEVICE, AND STORAGE MEDIUM” and filed on Nov. 4, 2020, whichclaims priority to Chinese Patent Application No. 202010055703.X, filedon Jan. 17, 2020 and entitled “CAMERA MOVEMENT CONTROL METHOD ANDAPPARATUS, DEVICE, AND STORAGE MEDIUM”. The entire disclosures of theprior applications are hereby incorporated by reference in theirentirety.

FIELD OF THE TECHNOLOGY

Embodiments of this disclosure relate to the field of computertechnologies including a camera movement control method and apparatus, adevice, and a storage medium.

BACKGROUND OF THE DISCLOSURE

With the rapid development of game technologies, increasingly more gameclients provide a directed mode for a user. In a process that the userwatches a game video by using the directed mode, the game client cancontrol a directed camera to move, to focus the directed camera on awonderful game scene, thereby improving game video watching experienceof the user.

SUMMARY

Embodiments of this disclosure provide a camera operation (e.g.,movement and scaling) control method and apparatus, a device, and astorage medium, which are used to improve a camera operation (e.g.,movement and scaling) control effect.

Some aspects of the disclosure provide a method for camera operationcontrol in an electronic device. The method includes obtaining, based ona plurality of frames associated with a target time slice, a firsttarget parameter to be met by a camera of a virtual camera system in thetarget time slice. Then, the method includes determining a targetoperation speed of the camera in the target time slice at leastpartially based on the first target parameter and a time-speed changemagnification curve, and controlling the camera to operate based on thetarget operation speed.

Some aspects of the disclosure provide an apparatus that includesprocessing circuitry. The processing circuitry is configured to obtain,based on a plurality of frames associated with a target time slice, afirst target parameter to be met by a camera of a virtual camera systemin the target time slice. Further, the processing circuitry isconfigured to determine a target operation speed of the camera in thetarget time slice at least partially based on the first target parameterand a time-speed change magnification curve, and control the camera tooperate based on the target operation speed.

Some aspects of the disclosure provide a non-transitorycomputer-readable medium storing instructions which when executed by acomputer cause the computer to perform the method for camera operationcontrol.

The technical solutions provided in the embodiments of this disclosuremay bring the following beneficial effects: a first target parameterthat needs to be met by a camera in a target time slice is obtainedbased on data of a plurality of target frames, so that the reliabilityof the first target parameter is relatively high, which helps improvethe stability of camera operation (e.g., movement and scaling). Inaddition, the camera operation (e.g., movement and scaling) iscontrolled based on a time-speed change magnification curve, which helpsimprove the operation (e.g., movement and scaling) continuity of thecamera between adjacent time slices, so that the stability of theoperation (e.g., movement and scaling) process of the camera isrelatively high, and the camera operation (e.g., movement and scaling)control effect is relatively good.

BRIEF DESCRIPTION OF THE DRAWINGS

To describe the technical solutions of the embodiments of thisdisclosure more clearly, the following briefly introduces theaccompanying drawings required for describing the embodiments. Theaccompanying drawings in the following description show some embodimentsof this disclosure.

FIG. 1 is a schematic diagram of an implementation environment of acamera operation (e.g., movement and scaling) control method accordingto an embodiment of this disclosure.

FIG. 2 is a flowchart of a camera operation (e.g., movement and scaling)control method according to an embodiment of this disclosure.

FIG. 3 is a schematic diagram of a operation (e.g., movement andscaling) process of an interaction object according to an embodiment ofthis disclosure.

FIG. 4 is a schematic diagram of position points indicated by a centerposition parameter, a sampling position parameter, and an assemblyposition parameter according to an embodiment of this disclosure.

FIG. 5 is a schematic diagram of a distance-scaling change magnificationcurve according to an embodiment of this disclosure.

FIG. 6 is a schematic diagram of a time-speed change magnification curveaccording to an embodiment of this disclosure.

FIG. 7 is a schematic diagram of an angle-steering mixed coefficientcurve according to an embodiment of this disclosure.

FIG. 8 is a schematic diagram of a time-movement speed curve accordingto an embodiment of this disclosure.

FIG. 9 is a schematic diagram of a camera operation (e.g., movement andscaling) control process according to an embodiment of this disclosure.

FIG. 10 is a schematic diagram of a camera operation (e.g., movement andscaling) control apparatus according to an embodiment of thisdisclosure.

FIG. 11 is a schematic diagram of a camera operation (e.g., movement andscaling) control apparatus according to an embodiment of thisdisclosure.

FIG. 12 is a schematic structural diagram of a terminal according to anembodiment of this disclosure.

FIG. 13 is a schematic structural diagram of a computer device accordingto an embodiment of this disclosure.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of thisdisclosure clearer, the following further describes implementations ofthis disclosure in detail with reference to the accompanying drawings.

In this specification, claims, and accompanying drawings of thisdisclosure, the terms “first”, “second”, and so on are intended todistinguish similar objects but do not necessarily indicate a specificorder or sequence. It is to be understood that such used data isinterchangeable where appropriate so that the embodiments of thisdisclosure described here can be implemented in an order other thanthose illustrated or described here. The implementations described inthe following exemplary embodiments do not represent all implementationsthat are consistent with this disclosure. On the contrary, theimplementations are merely examples of apparatuses and methods that aredescribed in detail in the appended claims and that are consistent withsome aspects of this disclosure.

With the rapid development of game technologies, increasingly more gameclients provide a directed mode for a user. For example, a video gamecan include a virtual camera system that provides various modes forrespective users to select to view the game video. The virtual camerasystem can include a virtual camera (also referred to as camera) or aset of virtual cameras for providing a view or views of a virtual scene.A camera in the virtual camera system can be controlled to simulateoperations of real camera in order to generate a view of the virtualscene from various positions, angles, scales, and the like. For example,when a user selects the directed mode, a directed camera canautomatically move along with game pace, and display wonderful teamfightor some important moments to the user on the premise that the user doesnot need to perform any operation. In other words, in a process that theuser watches a game video by using the directed mode, the game clientcan control the directed camera to move, to focus the directed camera ona wonderful game scene, thereby improving game video watching experienceof the user. In some examples, a camera in the virtual camera system canbe referred to as a lens in the virtual camera system, and cameracontrol can be referred to as lens control.

In view of this, the embodiments of this disclosure provide a cameraoperation (e.g., movement and scaling) control method, and FIG. 1 is aschematic diagram of an implementation environment of a camera operation(e.g., movement and scaling) control method according to an embodimentof this disclosure. The implementation environment includes a terminal11 and a server 12.

A game client that can provide a directed mode is installed in theterminal 11, and under a directed mode, the game client in the terminal11 can apply the method provided in the embodiments of this disclosureto control a camera to move. The camera in this embodiment of thisdisclosure is a directed camera under the directed mode, and a scenefocused by the directed camera is a scene that the user sees under thedirected mode. In some embodiments, the server 12 refers to a backendserver of the game client installed in the terminal 11, and the server12 can provide data support to the game client installed in the terminal11.

In some embodiments, the terminal 11 is a smart device such as a mobilephone, a tablet computer, or a personal computer. The server 12 is aserver, or a server cluster including a plurality of servers, or a cloudcomputing service center. The terminal 11 and the server 12 establish acommunication connection through a wired or wireless network.

It is noted that the terminal 11 and server 12 are only examples, andother related or potential terminals or servers that are applicable tothis disclosure are also to be included in the protection scope of thisdisclosure, and are included herein by reference.

Based on the implementation environment shown in FIG. 1, an embodimentof this disclosure provides a camera operation (e.g., movement andscaling) control method by using an example in which the method isapplicable to a game client in a terminal. As shown in FIG. 2, themethod provided in this embodiment of this disclosure includes thefollowing steps:

In step 201, the terminal obtains, based on data of a plurality oftarget frames corresponding to a target time slice, a first targetparameter that needs to be met by a camera in the target time slice.

In some embodiments, the target time slice refers to a time slice onwhich a camera operation (e.g., movement and scaling) control operationneeds to be performed currently. In a process of directing a game video,the terminal divides the game video into a plurality of time slicesaccording to a first reference time interval, and then sequentiallyperforms a camera operation (e.g., movement and scaling) controloperation in each time slice according to the method provided in thisembodiment of this disclosure. In some embodiments, the first referencetime interval is set according to experience or freely adjustedaccording to application scenarios, which is not limited in theembodiments of this disclosure. For example, the first reference timeinterval is set to 1 second. In this case, a time interval correspondingto the target time slice is also 1 second.

In some embodiments, the plurality of target frames corresponding to thetarget time slice include a game video frame corresponding to a starttimestamp of the target time slice and a reference number of game videoframes located before the game video frame corresponding to the starttimestamp. In some embodiments, the reference number is set according toexperience or freely adjusted according to application scenarios, whichis not limited in the embodiments of this disclosure. In someembodiments, the reference number is set to 10. In this case, theterminal can obtain the first target parameter that needs to be met bythe camera in the target time slice based on 11 target framescorresponding to the target time slice.

In some embodiments, the data of each target frame refers to originaldata in the frame, which includes, but is not limited to, position dataof an interaction object in the target frame, timestamp data of thetarget frame, and the like. The interaction object in the target framerefers to a game character model participating in a game processincluded in the target frame.

In some embodiments, the first target parameter refers to a parameterthat needs to be met by the camera at an end moment of the target timeslice. The first target parameter includes at least one of a firstposition parameter or a first scaling parameter. The first positionparameter is used for indicating a position that needs to be focused bythe camera at the end moment of the target time slice, and the firstscaling parameter is used for indicating a scaling value that needs tobe reached by the camera at the end moment of the target time slice. Insome embodiments, the terminal can represent the first positionparameter in the form of position coordinates and represent the firstscaling parameter in the form of a value. In some embodiments, when theterminal represents the first scaling parameter by using a value, avalue between 0 and 1 (including 0 and 1) may be used to represent thata focus range of the camera is zoomed out, 1 may be used to representthat the focus range of the camera is unchanged, and a value greaterthan 1 may be used to represent that the focus range of the camera iszoomed in.

In this implementation, the terminal obtains the first target parameterbased on the data of the plurality of target frames, so that harmfulimpact of abnormal data of one video frame on the first target parametermay be reduced, and the reliability of the obtained first targetparameter is relatively high, thereby improving the stability of asubsequent camera operation (e.g., movement and scaling) controlprocess.

In some embodiments, a process that the terminal obtains, based on dataof a plurality of target frames corresponding to a target time slice, afirst target parameter that needs to be met by a camera in the targettime slice includes the following steps 2011 to 2013:

In step 2011, the terminal performs sampling processing on the data ofthe target frames corresponding to the target time slice, to obtain asampling parameter corresponding to each target frame.

In some embodiments, the sampling parameter corresponding to each targetframe refers to a parameter that is determined based on the target frameand needs to be met by the camera in the target time slice. The samplingparameter corresponding to each target frame includes at least one of asampling position parameter or a sampling scaling parametercorresponding to the target frame.

In some embodiments, in a case that the sampling parameter correspondingto each target frame includes a sampling position parameter, a processthat the terminal performs sampling processing on the data of the targetframes corresponding to the target time slice, to obtain a samplingparameter corresponding to each target frame includes step A and step B:

In step A, the terminal obtains a center position parameter ofinteraction objects in each target frame based on the data of the targetframes.

In some embodiments, the center position parameter of the interactionobjects in each target frame is used for indicating a geometric centerof a position of the interaction objects in each target frame. Animplementation process of this step is that: the terminal extractsposition data of the interaction objects in each target frame from thedata of the target frames. The terminal obtains the center positionparameter of the interaction objects in each target frame based on theposition data of the interaction objects.

In some embodiments, a process that the terminal obtains the centerposition parameter of the interaction objects in each target frame basedon the position data of the interaction objects is that: the terminaluses an average value of the position data of the interaction objects asthe center position parameter of the interaction objects in each targetframe. The terminal can implement the foregoing process based on Formula1.

P _(i1)=Sum(P _(c))/N(p)  (Formula 1)

P_(i1) represents the center position parameter of the interactionobjects in each target frame; Sum(P_(c)) represents a sum of theposition data of the interaction objects in each target frame; and N(p)represents a quantity of interaction objects in each target frame.

In step B, the terminal determines the sampling position parametercorresponding to each target frame based on the center positionparameter of the interaction objects in each target frame and anassembly position parameter of the interaction objects.

In some embodiments, the assembly position parameter of the interactionobjects refers to a parameter of a final assembly point that needs to bereached by all interaction objects in the game video. The terminal canobtain the assembly position parameter from the backend server of thegame client. For different target frames, the center position parametersof the interaction object may be different, but a final assemblyposition of the interaction object is the same, so that the assemblyposition parameters of the interaction objects are the same.

In a battle scene of the game video, as shown in FIG. 3, a movementprocess of the interaction object is that: the interaction object firstmoves from a start position point 301 to a middle assembly point 302,then the interaction object moves from the middle assembly point 302 toa final assembly point 303 by moving from a top lane to a bottom lane.The backend server of the game client can obtain a parameter of thefinal assembly point by analyzing the entire game video, and feed theparameter of the final assembly point back to the terminal. Therefore,the terminal obtains the assembly position parameter of the interactionobject.

In some embodiments, a process that the terminal determines the samplingposition parameter corresponding to each target frame based on thecenter position parameter of the interaction objects in each targetframe and an assembly position parameter of the interaction objects isthat: the terminal determines the sampling position parametercorresponding to each target frame based on the center positionparameter of the interaction objects in each target frame and a firstweight value, and the assembly position parameter of the interactionobjects and a second weight value. In some embodiments, the terminalrespectively obtains a product of the center position parameter of theinteraction objects in each target frame and the first weight value anda product of the assembly position parameter of the interaction objectsand the second weight value, and uses a sum of the two products as thesampling position parameter corresponding to each target frame. Theterminal can implement the foregoing process based on Formula 2.

P _(i) =P _(i1) ×d ₁ +P _(i2) ×d ₂  (Formula 2)

P_(i) represents the sampling position parameter corresponding to eachtarget frame; P_(i1) represents the center position parameter of theinteraction objects in each target frame, and d₁ represents the firstweight value; and P_(i2) represents the assembly position parameter ofthe interaction objects, and d₂ represents the second weight value. Insome embodiments, the first weight value and the second weight value areset according to experience or freely adjusted according to applicationscenarios, which is not limited in the embodiments of this disclosure.In some embodiments, when the first weight value is set to 0.5, thesecond weight value may be also set to 0.5. This setting manner canenable the user to both view performance of each interaction object at acurrent position and performance at the final assembly point.

In some embodiments, if the terminal uses position coordinates torepresent the center position parameter, the sampling positionparameter, and the assembly position parameter corresponding to eachtarget frame, the center position parameter, the sampling positionparameter, and the assembly position parameter respectively indicate aposition point. The position points indicated by the center positionparameter, the sampling position parameter, and the assembly positionparameter may be as shown in FIG. 4. In FIG. 4, a blue party and a redparty are two teams rival to each other in the game video, and theterminal can determine a position point 401 indicated by a centerposition parameter of each interaction object of the red party and eachinteraction object of the blue party, a position point 403 indicated bythe assembly position parameter, and a position point 402 indicated bythe sampling position parameter corresponding to the target frame.

In this implementation, the terminal determines the sampling positionparameter corresponding to each target frame by taking the centerposition parameter corresponding to each target frame and the assemblyposition parameter into comprehensive consideration, so that in a cameraoperation (e.g., movement and scaling) control process, the camera maybe caused to meet the first position parameter and the first scalingparameter simultaneously, thereby reducing visual abruptness.

In some embodiments, in a case that the sampling parameter correspondingto each target frame includes a sampling scaling parameter, a processthat the terminal performs sampling processing on the data of the targetframes corresponding to the target time slice, to obtain a samplingparameter corresponding to each target frame includes step a to step c:

In step a, the terminal obtains a distance parameter corresponding toeach target frame based on the data of the target frames.

In some embodiments, an implementation process of this step is that: theterminal respectively obtains, based on the data of the target frames, adistance between the position data of each interaction object and thesampling position parameter corresponding to each target frame and adistance between the sampling position parameter corresponding to eachtarget frame and the assembly position parameter. The terminal uses amaximum distance of the foregoing distances as the distance parametercorresponding to each target frame. The terminal can obtain the distanceparameter corresponding to each target frame by using Formula 3.

L=max{|P _(c) −P _(i) |,|P _(i2) −P _(i)|}  (Formula 3)

L represents the distance parameter corresponding to each target frame;P_(c) represents the position data of each interaction object in eachtarget frame; P_(i) represents the sampling position parametercorresponding to each target frame; and P_(i2) represents the assemblyposition parameter.

In step b, the terminal determines a scaling change magnificationcorresponding to the distance parameter based on a distance-scalingchange magnification curve.

In a process that the camera keeps moving, the distance parametercorresponding to each game video frame in the entire game video reducesfrom L_(max) to L_(min), and the scaling parameter increases fromS_(min) to S_(max). L_(max) refers to a maximum value among the distanceparameter corresponding to each game video frame in the entire gamevideo, and L_(min) refer to a minimum value among the distance parametercorresponding to each game video frame in the entire game video; S_(min)refers to a minimum scaling value of the camera in the entire game videoand corresponds to L_(max); and S_(max) refers to a maximum scalingvalue of the camera in the entire game video and corresponds to L_(min).

According to the characteristics of the game scene, in the entire gamevideo, a value of the distance parameter corresponding to each gamevideo frame does not linearly changes between L_(max) and L_(min), butis relatively concentrated on the L_(min) side. Therefore, changing fromS_(min) to S_(max) is to be as follows: a change speed in the formerpart is low, and a change speed in the latter part is high. Therefore, aslop of the distance-scaling change magnification curve used in thisembodiment of this disclosure is an increasing tendency, that is, theslope of the distance-scaling change magnification curve is small in theformer part and large in the latter part. This distance-scaling changemagnification curve can increase a mapping range and optimize visualfeeling of camera operation (e.g., movement and scaling) when the valueof L is in a relatively concentrated range. The foregoing L_(max),L_(min), S_(min), and S_(max) may be determined by the backend server ofthe game client and fed back to the game client, or may be read by thegame client from a configuration file recording L_(max), L_(min),S_(min), and S_(max).

In some embodiments, the distance-scaling change magnification curve isas shown by 501 in FIG. 5. In FIG. 5, a horizontal coordinate representsa normalized distance, and a longitudinal coordinate represents ascaling change magnification. A slope of the distance-scaling changemagnification curve 501 shown in FIG. 5 is an increasing tendency. As avalue of the horizontal coordinate changes from 0 to 1, a value of thelongitudinal also changes from 0 to 1.

In some embodiments, a process that the terminal determines a scalingchange magnification corresponding to the distance parameter based on adistance-scaling change magnification curve is that: the terminalperforms normalization processing on the distance parameter, to obtain anormalized distance parameter. The terminal determines a scaling changemagnification corresponding to the normalized distance parameter basedon the distance-scaling change magnification curve.

In some embodiments, the terminal can obtain the normalized distanceparameter by using Formula 4.

L′=(L _(max) −L)/(L _(max) −L _(min))  (Formula 4)

L′ represents the normalized distance parameter; L represents thedistance parameter before the normalization processing, and L_(max)represents the maximum value among the distance parameter correspondingto each game video frame in the entire game video; and L_(min)represents the minimum value among the distance parameter correspondingto each game video frame in the entire game video.

In step c, the terminal determines the sampling scaling parametercorresponding to each target frame based on the scaling changemagnification.

In some embodiments, the terminal can determine the sampling scalingparameter corresponding to each target frame by using Formula 5.

S _(i)=(S _(max) −S _(min))×r+S _(min)  (Formula 5)

S_(i) represents the sampling scaling parameter corresponding to eachtarget frame; r represents the scaling change magnification; S_(min)represents the minimum scaling value of the camera in the entire gamevideo; and S_(max) represents the maximum scaling value of the camera inthe entire game video.

In a word, for a case that the sampling parameter corresponding to eachtarget frame only includes the sampling position parameter, the terminalmay obtain the sampling parameter corresponding to each target frameaccording to the foregoing step A and step B. For a case that thesampling parameter corresponding to each target frame only includes thesampling scaling parameter, the terminal may obtain the samplingparameter corresponding to each target frame according to the foregoingstep a to step c. For a case that the sampling parameter correspondingto each target frame includes the sampling position parameter and thesampling scaling parameter, the terminal may obtain the samplingparameter corresponding to each target frame according to the foregoingstep A and step B and step a to step c.

In some embodiments, the terminal performs sampling processing on thedata of each target frame respectively based on step 2011, to obtain thesampling parameter corresponding to each target frame, and then performsstep 2012.

In step 2012, the terminal sets a weight value for each target frameaccording to a distance between a timestamp and a start timestamp of thetarget time slice.

In some embodiments, a process that the terminal sets a weight value foreach target frame according to a distance between a timestamp and astart timestamp of the target time slice is that: the terminal setsweight values from small to large for each target frame according to afrom far to near sequence of the distance between the timestamp and thestart timestamp of the target time slice, or the terminal sets weightvalues from large to small for each target frame according to a fromnear to far sequence of the distance between the timestamp and the starttimestamp of the target time slice. In some embodiments, distribution ofthe weight values corresponding to each target frame meet Gaussiandistribution.

In some embodiments, if the quantity of the target frames is 5, theterminal sets weight values of 1/55, 4/55, 9/55, 16/55, and 25/55 foreach target frame respectively according to a from far to near sequenceof the distance between the timestamp and the start timestamp of thetarget time slice.

In step 2013, the terminal determines the first target parameter thatneeds to be met by the camera in the target time slice based on thesampling parameter corresponding to each target frame and the weightvalue corresponding to each target frame.

In some embodiments, a process that the terminal determines the firsttarget parameter that needs to be met by the camera in the target timeslice based on the sampling parameter corresponding to each target frameand the weight value corresponding to each target frame is that: theterminal obtains a product of the sampling parameter corresponding toeach target frame and the weight value corresponding to each targetframe respectively, and then uses a sum of the products as the firsttarget parameter that needs to be met by the camera in the target timeslice.

For a case that the sampling parameter corresponding to each targetframe includes the sampling position parameter, the first targetparameter includes the first position parameter. For a case that thesampling parameter corresponding to each target frame includes thesampling scaling parameter, the first target parameter includes thefirst scaling parameter. For a case that the sampling parametercorresponding to each target frame includes the sampling positionparameter and the sampling scaling parameter, the first target parameterincludes the first position parameter and the first scaling parameter.

In some embodiments, if the quantity of the target frames is 5, theterminal sets weight values of 1/55, 4/55, 9/55, 16/55, and 25/55 foreach target frame respectively according to a from far to near sequenceof the distance between the timestamp and the start timestamp of thetarget time slice. The terminal can obtain the first position parameterin the first target parameter by using Formula 6.

P _(n) =P ₁×1/55+P ₂×4/55+P ₃×9/55+P ₄×16/55+P ₅×25/55  (Formula 6)

P_(n) represents the first position parameter in the first targetparameter; and P₁, P₂, P₃, P₄ and P₅ respectively represent samplingposition parameters corresponding to 5 target frames arranged in a fromfar to near sequence of the distance between the timestamp and the starttimestamp of the target time slice.

In some embodiments, the terminal can obtain the first scaling parameterin the first target parameter by using Formula 7.

S _(n) =S ₁×1/55+S ₂×4/55+S ₃×9/55+S ₄×16/55+S ₅×25/55  (Formula 7)

S_(n) represents the first scaling parameter in the first targetparameter; and S₁, S₂, S₃, S₄ and S₅ respectively represent samplingscaling parameters corresponding to 5 target frames arranged in a fromfar to near sequence of the distance between the timestamp and the starttimestamp of the target time slice.

In some embodiments, after the first target parameter that needs to bemet by the camera in the target time slice is obtained, the terminal mayfurther perform validity verification on the first target parameterbased on a parameter change threshold.

In some embodiments, a process that the terminal performs validityverification on the first target parameter based on a parameter changethreshold is: obtaining a change parameter of the camera in the targettime slice; and performing validity verification on the first targetparameter based on a comparison result of the change parameter and theparameter change threshold.

In some embodiments, a process that the terminal obtains a changeparameter of the camera in the target time slice is that: the terminalobtains the change parameter of the camera in the target time slicebased on a second target parameter that has been met by the camera inthe target time slice and the first target parameter. The second targetparameter that has been met in the target time slice refers to aparameter that is met by the camera at a start moment of the target timeslice, and the second target parameter includes at least one of a secondposition parameter or a second scaling parameter.

When the first target parameter includes the first position parameter,the change parameter of the camera in the target time slice includes aposition change parameter, and the terminal can represent the positionchange parameter by using a distance between the first positionparameter and the second position parameter. When the first targetparameter includes the first scaling parameter, the change parameter ofthe camera in the target time slice includes a scaling change parameter,and the terminal can represent the scaling change parameter by using anabsolute value of a difference between the first scaling parameter andthe second scaling parameter.

In some embodiments, a process that the terminal performs validityverification on the first target parameter based on a comparison resultof the change parameter and the parameter change threshold is that: whenthe change parameter is lower than the parameter change threshold, theterminal determines that the validity verification on the first targetparameter fails; and when the change parameter is not lower than theparameter change threshold, the terminal determines that the validityverification on the first target parameter succeeds.

In some embodiments, for a case that the first target parameter includesthe first position parameter and the first scaling parameter, the changeparameter of the camera in the target time slice includes a positionchange parameter and a scaling change parameter. In this case, a processthat the terminal performs validity verification on the first targetparameter based on a comparison result of the change parameter and theparameter change threshold is that: the terminal performs validityverification on the first position parameter based on a comparisonresult of the position change parameter and a first parameter changethreshold; and the terminal performs validity verification on the firstscaling parameter based on a comparison result of the scaling changeparameter and a second parameter change threshold. The first parameterchange threshold and the second parameter change threshold may be thesame or may be different, which is not limited in the embodiments ofthis disclosure. Through the foregoing process, the terminal can discarda parameter on which validity verification fails, uses the remainingparameter as the first target parameter on which validity verificationsucceeds, and the terminal performs step 202 based on the first targetparameter on which validity verification succeeds.

In some embodiments, if the first target parameter includes the firstposition parameter and the first scaling parameter, the second targetparameter includes a second position parameter and a second scalingparameter, and the change parameter of the camera in the target timeslice includes a position change parameter and a scaling changeparameter. It is assumed that position coordinates of the first positionparameter are (1, 1), position coordinates of the second positionparameter are (0, 1), the first scaling parameter is 10, and the secondscaling parameter is 2, the terminal may represent the position changeparameter of the camera in the target time slice by using a Euclideandistance 1 between the two position coordinates, and present the scalingchange parameter of the camera in the target time slice by using anabsolute value 8 of a difference between the two scaling parameters. Itis assumed that the first parameter change threshold is set to 2, andthe second parameter change threshold is set to 3, the validityverification on the first position parameter fails, and the validityverification on the first scaling parameter succeeds. In this case, thefirst target parameter on which validity verification succeeds onlyincludes the first scaling parameter.

In this implementation, the terminal can significantly reduce a camerajitter caused by tiny translation and tiny scaling by performingvalidity verification on the first target parameter.

Before the terminal obtains the first target parameter that needs to bemet by the camera in the target time slice, a trigger frequency may beset, and the step of obtaining the first target parameter may betriggered to be executed according to the trigger frequency. The triggerfrequency may be set according to experience or freely adjustedaccording to application scenarios, which is not limited in theembodiments of this disclosure. A trigger moment determined according tothe trigger frequency may be a moment corresponding to a short timeperiod before each time slice, for example, a moment corresponding to0.2 seconds before each time slice, to ensure that a camera operation(e.g., movement and scaling) control operation can be performed in timewhen the target time slice is reached.

In step 202, the terminal determines a target operation (e.g., movementand scaling) speed of the camera in the target time slice based on thefirst target parameter, an initial operation (e.g., movement andscaling) speed of the camera in the target time slice, a time intervalcorresponding to the target time slice, and a time-speed changemagnification curve.

The target operation (e.g., movement and scaling) speed includes atleast one of a target translation speed or a target scaling speed.

In some embodiments, the initial operation (e.g., movement and scaling)speed of the camera in the target time slice refers to a operation(e.g., movement and scaling) speed of the camera at a start moment ofthe target time slice, and the initial operation (e.g., movement andscaling) speed includes at least one of an initial translation speed oran initial scaling speed. The initial operation (e.g., movement andscaling) speed of the camera in the target time slice is also anoperation (e.g., movement and scaling) speed of the camera at an endmoment of a previous time slice of the target time slice. When a processthat the terminal controls the camera to move in the previous time sliceof the target time slice, the initial operation (e.g., movement andscaling) speed of the camera in the target time slice may be obtained.

In some embodiments, the time interval corresponding to the target timeslice refers to a duration from the start timestamp to an end timestampof the target time slice. The target operation (e.g., movement andscaling) speed of the camera in the target time slice refers to aoperation (e.g., movement and scaling) speed of the camera at an endmoment of the target time slice. That is, the target operation (e.g.,movement and scaling) speed refers to a operation (e.g., movement andscaling) speed when the camera meets the first target parameter.

In some embodiments, the time-speed change magnification curve is set bya game developer or freely adjusted according to application scenarios,which is not limited in the embodiments of this disclosure. In someembodiments, the time-speed change magnification curve is a Beziercurve. The Bezier curve is a smooth curve, and setting the time-speedchange curve as a Bezier curve helps improve the smoothness andstability during a camera operation (e.g., movement and scaling)process.

In some embodiments, the time-speed change magnification curve is asshown by 601 in FIG. 6. In FIG. 6, a horizontal coordinate represents anormalized time, and a longitudinal coordinate represents a speed changemagnification. The time-speed change magnification curve 601 shown inFIG. 6 is a Bezier curve. As a value of the horizontal coordinatechanges from 0 to 1, a value of the longitudinal also changes from 0 to1.

In some embodiments, for a case that the terminal performs validityverification on the first target parameter, in this step, the terminaldetermines the target operation (e.g., movement and scaling) speed ofthe camera in the target time slice based on the first target parameteron which validity verification succeeds, the initial operation (e.g.,movement and scaling) speed of the camera in the target time slice, thetime interval corresponding to the target time slice, and the time-speedchange magnification curve.

In some embodiments, a process that the terminal determines a targetoperation (e.g., movement and scaling) speed of the camera in the targettime slice based on the first target parameter, an initial operation(e.g., movement and scaling) speed of the camera in the target timeslice, a time interval corresponding to the target time slice, and atime-speed change magnification curve includes step 2021 to step 2023:

In step 2021, the terminal obtains a change parameter of the camera inthe target time slice based on a second target parameter that has beenmet by the camera in the target time slice and the first targetparameter.

In some embodiments, the second target parameter that has been met bythe camera in the target time slice refers to a parameter that is met bythe camera at a start moment of the target time slice, and the secondtarget parameter includes at least one of a second position parameter ora second scaling parameter. When a camera operation (e.g., movement andscaling) control process in a previous time slice of the target timeslice is ended, the second target parameter that has been met by thecamera in the target time slice may be obtained.

In some embodiments, when the first target parameter includes the firstposition parameter, the change parameter of the camera in the targettime slice includes a position change parameter, and the position changeparameter may be represented by using a distance between the firstposition parameter and the second position parameter; and when the firsttarget parameter includes the first scaling parameter, the changeparameter of the camera in the target time slice includes a scalingchange parameter, and the scaling change parameter may be presented byusing an absolute value of a difference between the first scalingparameter and the second scaling parameter.

In some embodiments, it is assumed that position coordinates of thefirst position parameter are (1, 1), position coordinates of the secondposition parameter are (0, 1), the first scaling parameter is 10, andthe second scaling parameter is 2, the terminal may represent theposition change parameter of the camera in the target time slice byusing a Euclidean distance 1 between the two position coordinates, andpresent the scaling change parameter of the camera in the target timeslice by using an absolute value 8 of a difference between the twoscaling parameters.

In step 2022, the terminal obtains a point value corresponding to thetime-speed change magnification curve.

A point value about time of the time-speed change magnification curve iscalculated. In some embodiments, as shown in FIG. 6, for a case that thetime in the time-speed change magnification curve is normalized, a timerange corresponding to the time-speed change magnification curve is [0,1]. ΔV(t) is used to represent the time-speed change magnificationcurve, and the point value corresponding to the time-speed changemagnification curve is obtained according to ∫₀ ¹ΔV(t)dt throughcalculation.

In step 2023, the terminal determines the target operation (e.g.,movement and scaling) speed of the camera in the target time slice basedon the change parameter, the initial operation (e.g., movement andscaling) speed, the time interval corresponding to the target timeslice, and the point value corresponding to the time-speed changemagnification curve.

In some embodiments, the terminal can determine the target operation(e.g., movement and scaling) speed of the camera in the target timeslice according to Formula 8.

ΔM=[V ₁ ×Δt+(V ₂ −V ₁)×Δt×∫ ₀ ¹ ΔV(t)dt]  (Formula 8)

ΔM represents the change parameter, which may be a translation changeparameter or may be a scaling change parameter; V₁ represents arelatively small operation (e.g., movement and scaling) speed of theinitial operation (e.g., movement and scaling) speed and the targetoperation (e.g., movement and scaling) speed, which may be a relativelysmall translation speed of the initial translation speed and the targettranslation speed, or may be a relatively small scaling speed of theinitial scaling speed and the target scaling speed; V₂ represents arelatively large operation (e.g., movement and scaling) speed of theinitial operation (e.g., movement and scaling) speed and the targetoperation (e.g., movement and scaling) speed, which may be a relativelylarge translation speed of the initial translation speed and the targettranslation speed, or may be a relatively large scaling speed of theinitial scaling speed and the target scaling speed; Δt represents thetime interval corresponding to the target time slice; and ∫₀ ¹ΔV(t)dtrepresents the point value corresponding to the time-speed changemagnification curve.

In some embodiments, when a product of the initial operation (e.g.,movement and scaling) speed and the time interval is not less than thechange parameter, it indicates that the initial operation (e.g.,movement and scaling) speed needs to be reduced or kept unchanged, thatis, the initial operation (e.g., movement and scaling) speed is not lessthan the target operation (e.g., movement and scaling) speed. In thiscase, V₁ represents the target operation (e.g., movement and scaling)speed, and V₂ represents the initial operation (e.g., movement andscaling) speed. V₁ is calculated according to Formula 8, so that thetarget operation (e.g., movement and scaling) speed may be obtained.

In some embodiments, when the product of the initial operation (e.g.,movement and scaling) speed and the time interval is less than thechange parameter, it indicates that the initial operation (e.g.,movement and scaling) speed needs to be increased, that is, the initialoperation (e.g., movement and scaling) speed is less than the targetoperation (e.g., movement and scaling) speed. In this case, V₁represents the initial operation (e.g., movement and scaling) speed, andV₂ represents the target operation (e.g., movement and scaling) speed.V₂ is calculated according to Formula 8, so that the target operation(e.g., movement and scaling) speed may be obtained.

In some embodiments, in a case that the target operation (e.g., movementand scaling) speed includes the target translation speed and the targetscaling speed, a process that the terminal determines a target operation(e.g., movement and scaling) speed of the camera in the target timeslice includes that: the terminal determines, according to Formula 8,the target translation speed of the camera in the target time slicebased on the translation change parameter, the initial translationspeed, the time interval corresponding to the target time slice, and apoint value corresponding to a time-translation speed changemagnification curve; and the terminal determines, according to Formula8, the target scaling speed of the camera in the target time slice basedon the scaling change parameter, the initial scaling speed, the timeinterval corresponding to the target time slice, and a point valuecorresponding to a time-scaling speed change magnification curve. Thetime-translation speed change magnification curve and the time-scalingspeed change magnification curve may be the same curve or may be twodifferent curves, which is not limited in the embodiments of thisdisclosure.

In some embodiments, the terminal can increase impact of a steeringmixed coefficient in a process of determining the target operation(e.g., movement and scaling) speed of the camera in the target timeslice, to reduce discomfort brought by direction changes (a translationdirection and a scaling direction), thereby improving the stability ofcamera operation (e.g., movement and scaling). This process may includethe following step 1 to step 4:

In step 1, the terminal obtains a steering angle corresponding to thetarget time slice based on a first operation (e.g., movement andscaling) direction and a second operation (e.g., movement and scaling)direction.

In some embodiments, the first operation (e.g., movement and scaling)direction refers to a operation (e.g., movement and scaling) directionof the camera at the start moment of the target time slice, and thefirst operation (e.g., movement and scaling) direction includes at leastone of a first translation direction or a first scaling direction. Thesecond operation (e.g., movement and scaling) direction refers to aoperation (e.g., movement and scaling) direction of the camera at theend moment of the target time slice, and the second operation (e.g.,movement and scaling) direction includes at least one of a secondtranslation direction or a second scaling direction. The steering anglecorresponding to the target time slice includes at least one of atranslation steering angle or a scaling steering angle.

In some embodiments, when the steering angle corresponding to the targettime slice includes the translation steering angle, a process that theterminal obtains a steering angle corresponding to the target time sliceincludes: the terminal determines the translation steering anglecorresponding to the target time slice based on an angle between thesecond translation direction and the first translation direction. Thatis, the terminal uses a degree corresponding to the angle between thesecond translation direction and the first translation direction as thetranslation steering angle corresponding to the target time slice. Insome embodiments, the first translation direction is determinedaccording to a position parameter at a start moment and a positionparameter at an end moment of a previous time slice of the target timeslice, and the second translation direction is determined according tothe second position parameter in the second target parameter and thefirst position parameter in the first target parameter.

In some embodiments, when the steering angle corresponding to the targettime slice includes the scaling steering angle, a process that theterminal obtains a steering angle corresponding to the target time sliceincludes: the terminal determines the scaling steering anglecorresponding to the target time slice based on a comparison result ofthe second scaling direction and the first scaling direction. In someembodiments, the first scaling direction is determined according to ascaling parameter at a start moment and a scaling parameter at an endmoment of a previous time slice of the target time slice, and the secondscaling direction is determined according to the second scalingparameter in the second target parameter and the first scaling parameterin the first target parameter.

In some embodiments, a process that the terminal determines the scalingsteering angle corresponding to the target time slice based on acomparison result of the second scaling direction and the first scalingdirection is that: when the second scaling direction and the firstscaling direction are consistent, the terminal uses a first angle as thescaling steering angle corresponding to the target time slice; and whenthe second scaling direction and the first scaling direction areinconsistent, the terminal uses a second angle as the scaling steeringangle. The first angle and the second angle may be set according toexperience. In some embodiments, the first angle is set to 0 degree, andthe second angle is set to 180 degrees. The scaling direction includes azooming in direction and a zooming out direction, and a case that thesecond scaling direction and the first scaling direction are consistentrefers to that both the second scaling direction and the first scalingdirection are a zooming in direction, or both the second scalingdirection and the first scaling direction are a zooming out direction.

In step 2, the terminal determines a steering mixed coefficientcorresponding to the steering angle.

In some embodiments, a manner in which the terminal determines thesteering mixed coefficient corresponding to the steering angle includes,but is not limited to, the following two types:

Manner 1: The terminal determines the steering mixed coefficientcorresponding to the steering angle based on an angle-steering mixedcoefficient curve.

In some embodiments, the angle-steering mixed coefficient curve is asshown by 701 in FIG. 7. In FIG. 7, a horizontal coordinate represents anangle, and a longitudinal coordinate represents a steering mixedcoefficient. After the steering angle is determined, the terminal candetermine the steering mixed coefficient corresponding to the steeringangle according to the angle-steering mixed coefficient curve 701. Asthe angle changes from 0 degree to 180 degrees, the steering mixedcoefficient decreases from 1 to 0.

Manner 2: The terminal determines the steering mixed coefficientcorresponding to the steering angle based on a correspondence betweenangles and steering mixed coefficients.

In some embodiments, the correspondence between angles and steeringmixed coefficients is set by a game developer, which is not limited inthe embodiments of this disclosure. In some embodiments, thecorrespondence between angles and steering mixed coefficients isrepresented in the form of a table. After the steering angle isdetermined, the terminal can query the steering mixed coefficientcorresponding to the steering angle in a correspondence table of anglesand steering mixed coefficients.

For a case that the steering angle includes the translation steeringangle and the scaling steering angle, the terminal needs to respectivelydetermine a translation steering mixed coefficient corresponding to thetranslation steering angle and a scaling steering mixed coefficientcorresponding to the scaling steering angle according to the foregoingmanner 1 or manner 2.

In step 3, the terminal updates the initial operation (e.g., movementand scaling) speed based on the steering mixed coefficient, to obtain anupdated initial operation (e.g., movement and scaling) speed.

In some embodiments, a manner in which the terminal updates the initialoperation (e.g., movement and scaling) speed based on the steering mixedcoefficient is that: the terminal uses a product of the initialoperation (e.g., movement and scaling) speed before update and thesteering mixed coefficient as the updated initial operation (e.g.,movement and scaling) speed.

In step 4, the terminal determines the target operation (e.g., movementand scaling) speed of the camera in the target time slice based on thefirst target parameter, the updated initial operation (e.g., movementand scaling) speed, the time interval corresponding to the target timeslice, and the time-speed change magnification curve.

For an implementation process of step 4, reference may be made to step2021 to step 2023, and details are not described herein again.

In some embodiments, after the target operation (e.g., movement andscaling) speed is obtained, the terminal can update the target operation(e.g., movement and scaling) speed based on a correction coefficient, toobtain an updated target operation (e.g., movement and scaling) speed.The terminal can implement the foregoing process based on Formula 9:

V ₂(n)=V ₁(n)×R  (Formula 9)

V₂(n) represents the updated target operation (e.g., movement andscaling) speed, V₁(n) represents the target operation (e.g., movementand scaling) speed before update, and R represents the correctioncoefficient. The correction coefficient may be set according toexperience or freely adjusted according to application scenarios, whichis not limited in the embodiments of this disclosure. For example, thecorrection coefficient is set to be within a range of [0.9, 1], forexample, R=0.95. Updating the target operation (e.g., movement andscaling) speed based on the correction coefficient within this range mayreduce errors caused by integral calculation on one hand, and mayfurther cause the camera to tend to meet the first target parameter in adelayed manner on the other hand. Compared with meeting the first targetparameter in advance, meeting the first target parameter in a delayedmanner can improve a visual effect and reduce a sense of pause.

In some embodiments, for a case that the target operation (e.g.,movement and scaling) speed includes the target translation speed andthe target scaling speed, the terminal can update the target translationspeed based on a first correction coefficient to obtain an updatedtarget translation speed; and the terminal updates the target scalingspeed based on a second correction coefficient to obtain an updatedtarget scaling speed. The first correction coefficient and the secondcorrection coefficient may be the same or may be different, which is notlimited in the embodiments of this disclosure.

In step 203, the terminal controls the camera to move based on thetime-speed change magnification curve, the initial operation (e.g.,movement and scaling) speed, and the target operation (e.g., movementand scaling) speed, to meet the first target parameter.

In a case that the target operation (e.g., movement and scaling) speedis updated based on the correction coefficient, the target operation(e.g., movement and scaling) speed in this step refers to the updatedtarget operation (e.g., movement and scaling) speed. In a case that theinitial operation (e.g., movement and scaling) speed is updated based onthe steering mixed coefficient, the initial operation (e.g., movementand scaling) speed in this step refers to the updated initial operation(e.g., movement and scaling) speed.

In some embodiments, a process that the terminal controls the camera tomove based on the time-speed change magnification curve, the initialoperation (e.g., movement and scaling) speed, and the target operation(e.g., movement and scaling) speed includes step 2031 to step 2034:

In step 2031, the terminal divides a process of controlling the camerato move into a reference number of subprocesses.

In some embodiments, in the time interval corresponding to the targettime slice, the terminal can divide, according to a second referencetime interval, the process of controlling the camera to move into areference number of consecutive subprocesses, to cause the camera tomeet the first target parameter by controlling the camera to move stepby step. The reference number may be determined according to the timeinterval corresponding to the target time slice and the second referencetime interval. In some embodiments, the terminal uses a ratio of thetime interval corresponding to the target time slice to the secondreference time interval as the reference number.

In some embodiments, the second reference time interval is determinedaccording to the time interval corresponding to the target time slice oris set according to experience, which is not limited in the embodimentsof this disclosure. In some embodiments, when the time intervalcorresponding to the target time slice is 1 second, the second referencetime interval is set to 0.02 seconds. In this case, the reference numberis 50. A time interval corresponding to each subprocess obtained by theterminal according to this division manner is 0.02 seconds.

In some embodiments, after the process of dividing the camera operation(e.g., movement and scaling) process into a reference number ofsubprocesses, the terminal can further obtain a sub-operation (e.g.,movement and scaling) speed corresponding to each subprocess based onstep 2032 and step 2033.

In step 2032, the terminal determines a speed change magnificationcorresponding to any subprocess based on a time parameter correspondingto the any subprocess and the time-speed change magnification curve.

In some embodiments, the time in the time-speed change magnificationcurve is normalized, and a time range corresponding to the time-speedchange magnification curve is [0, 1]. Before the speed changemagnification corresponding to the any subprocess is determined, thetime parameter corresponding to the any subprocess needs to be obtainedfirst. In some embodiments, a process that the terminal obtains the timeparameter corresponding to the any subprocess includes the two followingsteps:

In step 1, the terminal uses a ratio of a target time interval to thetime interval corresponding to the target time slice as a target ratio.

The target time interval refers to a sum of time intervals correspondingto subprocesses located before the any subprocess in the target timeslice. For example, it is assumed that the time interval correspondingto the target time slice is 1 second, the time interval corresponding toeach subprocess is 0.02 seconds, and the any subprocess is a sixthsubprocess in the target time slice. In this case, the target timeinterval refers to a sum of time intervals corresponding to 5subprocesses located before the any subprocess in the target time slice,and the target time slice is 0.1 seconds. In this case, the target ratiois 0.1/1=0.1.

In step 2, when the initial operation (e.g., movement and scaling) speedis less than the target operation (e.g., movement and scaling) speed,the terminal uses the target ratio as the time parameter correspondingto the any subprocess; and when the initial operation (e.g., movementand scaling) speed is not less than the target operation (e.g., movementand scaling) speed, the terminal uses a difference between 1 and thetarget ratio as the time parameter corresponding to the any subprocess.

After the time parameter corresponding to the any subprocess isdetermined based on step 1 and step 2, the terminal can determine aspeed change magnification corresponding to the time parameter based onthe time-speed change magnification curve, and uses the speed changemagnification as the speed change magnification corresponding to the anysubprocess.

The speed change magnification includes at least one of a translationspeed change magnification or a scaling speed change magnification. In aprocess that the terminal obtains a translation speed changemagnification corresponding to the any subprocess, the terminaldetermines a translation speed change magnification corresponding to thetime parameter based on a time-translation speed change magnificationcurve, and uses the translation speed change magnification as thetranslation speed change magnification corresponding to the anysubprocess; and in a process that the terminal obtains a scaling speedchange magnification corresponding to the any subprocess, the terminaldetermines a scaling speed change magnification corresponding to thetime parameter based on a time-scaling speed change magnification curve,and uses the scaling speed change magnification as the scaling speedchange magnification corresponding to the any subprocess.

In step 2033, the terminal determines a sub-operation (e.g., movementand scaling) speed corresponding to the any subprocess based on theinitial operation (e.g., movement and scaling) speed, the targetoperation (e.g., movement and scaling) speed, and the speed changemagnification corresponding to the any subprocess.

In some embodiments, the terminal can obtain the sub-operation (e.g.,movement and scaling) speed corresponding to the any subprocess based onFormula 10:

V _(c) =V ₁+(V ₂ −V ₁)×ΔV(T)  (Formula 10)

V_(c) represents the sub-operation (e.g., movement and scaling) speedcorresponding to the any subprocess, and V₁ represents a relativelysmall operation (e.g., movement and scaling) speed of the initialoperation (e.g., movement and scaling) speed and the target operation(e.g., movement and scaling) speed; V₂ represents a relatively largeoperation (e.g., movement and scaling) speed of the initial operation(e.g., movement and scaling) speed and the target operation (e.g.,movement and scaling) speed; T represents the time parametercorresponding to the any subprocess determined in step 2032; and ΔV(T)represents the speed change magnification corresponding to the anysubprocess.

In some embodiments, the sub-operation (e.g., movement and scaling)speed includes at least one of a sub-translation speed or a sub-scalingspeed. In a process that the terminal calculates the sub-translationspeed based on Formula 10, V_(c) represents the sub-translation speedcorresponding to the any subprocess, and V₁ represents a relativelysmall translation speed of the initial translation speed and the targettranslation speed; V₂ represents a relatively large translation speed ofthe initial translation speed and the target translation speed; andΔV(T) represents the translation speed change magnificationcorresponding to the any subprocess determined based on thetime-translation speed change magnification curve.

In some embodiments, in a process that the terminal calculates thesub-scaling speed based on Formula 10, V_(c) represents the sub-scalingspeed corresponding to the any subprocess, and V₁ represents arelatively small scaling speed of the initial scaling speed and thetarget scaling speed; V₂ represents a relatively large scaling speed ofthe initial scaling speed and the target scaling speed; and ΔV(T)represents the scaling speed change magnification corresponding to theany subprocess determined based on the time-scaling speed changemagnification curve.

In step 2034, the terminal controls the camera to move according to thesub-operation (e.g., movement and scaling) speed corresponding to theany subprocess in a time interval corresponding to the any subprocess.

In the time interval corresponding to the any subprocess, the operation(e.g., movement and scaling) speed of the camera keeps the sub-operation(e.g., movement and scaling) speed corresponding to the any subprocessunchanged. In some embodiments, the time interval corresponding to theany subprocess is 0.02 seconds, and the sub-operation (e.g., movementand scaling) speed corresponding to the any subprocess includes asub-translation speed and a sub-scaling speed, where the sub-translationspeed is 1 meter per second, and the sub-scaling speed is 0.5 persecond. In the 0.02 seconds corresponding to the any subprocess, thecamera is controlled to perform scaling at a speed of 0.5 per secondwhile the camera is controlled to perform translation at a speed of 1meter per second.

In some embodiments, after the sub-operation (e.g., movement andscaling) speed corresponding to the any subprocess is determined, theterminal may continue to determine a sub-operation (e.g., movement andscaling) speed of a next subprocess, to control the camera to moveaccording to the sub-operation (e.g., movement and scaling) speedcorresponding to the next subprocess after controlling the camera tomove according to the sub-operation (e.g., movement and scaling) speedcorresponding to the any subprocess, and the rest may be deduced byanalogy until a sub-operation (e.g., movement and scaling) speedcorresponding to the last subprocess in the target time slice isdetermined. The terminal then controls the camera to move according tothe sub-operation (e.g., movement and scaling) speed corresponding tothe last subprocess, to cause the camera to meet the first targetparameter, so as to complete the camera operation (e.g., movement andscaling) control process in the target time slice. The terminal thencontinues to perform a camera operation (e.g., movement and scaling)control operation in a next time slice based on the foregoing step 201to step 203.

In the entire process of controlling a camera to move according to themethod provided in this embodiment of this disclosure, the operation(e.g., movement and scaling) continuity of the camera between adjacenttime slices is relatively good, and a transition of the camera betweenadjacent time slices may be smooth, thereby achieving smooth operation(e.g., movement and scaling) and reducing discomfort of the user. Forexample, it is assumed that the time interval of each time slice is 1second, a time-operation (e.g., movement and scaling) speed curve ofcamera operation (e.g., movement and scaling) among 3 adjacent timeslices may be as shown by 801 in FIG. 8, and the curve 801 in FIG. 8 hasgood continuity at each junction, which indicates that the smoothness ofthe camera operation (e.g., movement and scaling) process is relativelygood.

Based on the above, a process that the terminal controls the camera tomove may be as shown by 901 to 904 in FIG. 9:

In 901, temporary parameters are prepared. After a first targetparameter is obtained, temporary parameters for usage in subsequentprocesses are prepared, which include, but are not limited to, a triggerfrequency, a weight value of each target frame, a parameter changethreshold, a time-speed change magnification curve, a distance-scalingchange magnification curve, and an angle-steering mixed coefficientcurve.

In 902, a first target parameter is obtained. The terminal obtains asampling position parameter and a sampling scaling parametercorresponding to each target frame, where the sampling scaling parameteris determined according to the distance-scaling change magnificationcurve. The terminal determines the first target parameter according tothe sampling parameter and the weight value corresponding to each targetframe. the terminal performs validity verification on the first targetparameter according to the parameter change threshold, to achieve aneffect of filtering the first target parameter.

In 903, the terminal determines a target operation (e.g., movement andscaling) speed. The terminal determines a steering mixed coefficientaccording to the angle-steering mixed coefficient curve. The terminalupdates an initial operation (e.g., movement and scaling) speedaccording to the steering mixed coefficient. The terminal determines thetarget operation (e.g., movement and scaling) speed according to thefirst target parameter, a time interval, the time-speed changemagnification curve, and the updated initial operation (e.g., movementand scaling) speed.

In 904, the terminal controls the camera to move. The terminaldetermines a sub-operation (e.g., movement and scaling) speedcorresponding to each subprocess according to the target operation(e.g., movement and scaling) speed, the updated initial operation (e.g.,movement and scaling) speed, and the time-speed change magnificationcurve. In a time interval corresponding to each subprocess, the terminalcontrols the camera to move according to the sub-operation (e.g.,movement and scaling) speed corresponding to each subprocess, to causethe camera to meet the first target parameter.

In the embodiments of this disclosure, the terminal obtains the firsttarget parameter that needs to be met by the camera in the target timeslice based on the data of the plurality of target frames, so that thereliability of the first target parameter is relatively high, whichhelps improve the stability of camera operation (e.g., movement andscaling). In addition, the camera operation (e.g., movement and scaling)is controlled based on a time-speed change magnification curve, whichhelps improve the operation (e.g., movement and scaling) continuity ofthe camera between adjacent time slices, so that the stability of theoperation (e.g., movement and scaling) process of the camera isrelatively high, and the camera operation (e.g., movement and scaling)control effect is relatively good.

It is noted that the process for camera control in FIG. 9 can beimplemented in any suitable electronic device, such as a terminal(device), a server (device), and the like.

Referring to FIG. 10, an embodiment of this disclosure provides a cameraoperation (e.g., movement and scaling) control apparatus that includesan obtaining module 100, a determining module 1002, and a control module1003.

The obtaining module 1001 is configured to obtain, based on data of aplurality of target frames corresponding to a target time slice, a firsttarget parameter that needs to be met by a camera in the target timeslice. The first target parameter includes at least one of a firstposition parameter or a first scaling parameter.

The determining module 1002 is configured to determine a targetoperation (e.g., movement and scaling) speed of the camera in the targettime slice based on the first target parameter, an initial operation(e.g., movement and scaling) speed of the camera in the target timeslice, a time interval corresponding to the target time slice, and atime-speed change magnification curve. The target operation (e.g.,movement and scaling) speed includes at least one of a targettranslation speed or a target scaling speed.

The control module 1003 is configured to control the camera to movebased on the time-speed change magnification curve, the initialoperation (e.g., movement and scaling) speed, and the target operation(e.g., movement and scaling) speed.

In some embodiments, the obtaining module 1001 is configured to performsampling processing on the data of the target frames corresponding tothe target time slice, to obtain a sampling parameter corresponding toeach target frame; set a weight value for each target frame according toa distance between a timestamp and a start timestamp of the target timeslice; and determine the first target parameter that needs to be met bythe camera in the target time slice based on the sampling parametercorresponding to each target frame and the weight value corresponding toeach target frame.

In some embodiments, the sampling parameter corresponding to each targetframe includes a sampling position parameter, and the obtaining module1001 is further configured to obtain a center position parameter of aninteraction object in each target frame based on the data of the targetframes; and determine the sampling position parameter corresponding toeach target frame based on the center position parameter of theinteraction object in each target frame and an assembly positionparameter of the interaction object.

In some embodiments, the sampling parameter corresponding to each targetframe includes a sampling scaling parameter, and the obtaining module1001 is further configured to obtain a distance parameter correspondingto each target frame based on the data of the target frames; determine ascaling change magnification corresponding to the distance parameterbased on a distance-scaling change magnification curve; and determinethe sampling scaling parameter corresponding to each target frame basedon the scaling change magnification.

In some embodiments, the determining module 1002 is configured to obtaina steering angle corresponding to the target time slice based on a firstoperation (e.g., movement and scaling) direction and a second operation(e.g., movement and scaling) direction; determine a steering mixedcoefficient corresponding to the steering angle; update the initialoperation (e.g., movement and scaling) speed based on the steering mixedcoefficient, to obtain an updated initial operation (e.g., movement andscaling) speed; and determine the target operation (e.g., movement andscaling) speed of the camera in the target time slice based on the firsttarget parameter, the updated initial operation (e.g., movement andscaling) speed, the time interval corresponding to the target timeslice, and the time-speed change magnification curve.

In some embodiments, the determining module 1002 is configured to obtaina change parameter of the camera in the target time slice based on asecond target parameter that has been met by the camera in the targettime slice and the first target parameter, where the second targetparameter includes at least one of a second position parameter or asecond scaling parameter; obtain a point value corresponding to thetime-speed change magnification curve; and determine the targetoperation (e.g., movement and scaling) speed of the camera in the targettime slice based on the change parameter, the initial operation (e.g.,movement and scaling) speed, the time interval corresponding to thetarget time slice, and the point value corresponding to the time-speedchange magnification curve.

In some embodiments, the control module 1003 is configured to divide aprocess of controlling the camera to move into a reference number ofsubprocesses; determine a speed change magnification corresponding toany subprocess based on a time parameter corresponding to the anysubprocess and the time-speed change magnification curve; determine asub-operation (e.g., movement and scaling) speed corresponding to theany subprocess based on the initial operation (e.g., movement andscaling) speed, the target operation (e.g., movement and scaling) speed,and the speed change magnification corresponding to the any subprocess;and control the camera to move according to the sub-operation (e.g.,movement and scaling) speed corresponding to the any subprocess in atime interval corresponding to the any subprocess.

In some embodiments, referring to FIG. 11, the apparatus furtherincludes a verification module 1004.

The verification module 1004 is configured to perform validityverification on the first target parameter based on a parameter changethreshold, and the determining module 1002 is further configured todetermine the target operation (e.g., movement and scaling) speed of thecamera in the target time slice based on the first target parameterpassing the validity verification, the initial operation (e.g., movementand scaling) speed of the camera in the target time slice, the timeinterval corresponding to the target time slice, and the time-speedchange magnification curve.

In some embodiments, referring to FIG. 11, the apparatus furtherincludes an update module 1005.

The update module 1005 is configured to update the target operation(e.g., movement and scaling) speed based on a correction coefficient, toobtain an updated target operation (e.g., movement and scaling) speed,and the control module 1003 is further configured to control the camerato move based on the time-speed change magnification curve, the initialoperation (e.g., movement and scaling) speed, and the target operation(e.g., movement and scaling) speed, to meet the first target parameter.

In some embodiments, the time-speed change magnification curve is aBezier curve.

In the embodiments of this disclosure, the first target parameter thatneeds to be met by the camera in the target time slice is obtained basedon the data of the plurality of target frames, so that the reliabilityof the first target parameter is relatively high, which helps improvethe stability of camera operation (e.g., movement and scaling). Inaddition, the camera operation (e.g., movement and scaling) iscontrolled based on a time-speed change magnification curve, which helpsimprove the operation (e.g., movement and scaling) continuity of thecamera between adjacent time slices, so that the stability of theoperation (e.g., movement and scaling) process of the camera isrelatively high, and the camera operation (e.g., movement and scaling)control effect is relatively good.

When the apparatus provided in the foregoing embodiments implementsfunctions of the apparatus, the division of the foregoing functionalmodules is merely an example for description. During actual application,the functions may be assigned to and completed by different functionalmodules according to the requirements, that is, the internal structureof the device is divided into different functional modules, to implementall or some of the functions described above. In addition, the apparatusand method embodiments provided in the foregoing embodiments belong tothe same concept. For the specific implementation process, reference maybe made to the method embodiments, and details are not described hereinagain.

According to some aspects of the disclosure, the embodiments of thisdisclosure may be implemented in a terminal and/or implemented in aserver, and a structure of the terminal is described below.

FIG. 12 is a schematic structural diagram of a terminal according to anembodiment of this disclosure, and a game client is installed in theterminal. The terminal may be a smartphone, a tablet computer, anotebook computer, or a desktop computer. The terminal may also bereferred to as user equipment, a portable terminal, a laptop terminal,or a desktop terminal, among other names.

Generally, the terminal includes a processor 1201 and a memory 1202.

The processor 1201 may include one or more processing cores, forexample, a 4-core processor or an 8-core processor. The processor 1201may be implemented by using at least one hardware form of a digitalsignal processor (DSP), a field-programmable gate array (FPGA), and aprogrammable logic array (PLA). The processor 1201 may also include amain processor and a coprocessor. The main processor is a processorconfigured to process data in an awake state, and is also referred to asa central processing unit (CPU). The coprocessor is a low powerconsumption processor configured to process the data in a standby state.In some embodiments, the processor 1201 may be integrated with agraphics processing unit (GPU). The GPU is configured to render and drawcontent that needs to be displayed on a display. In some embodiments,the processor 1201 may further include an artificial intelligence (AI)processor. The AI processor is configured to process computingoperations related to machine learning.

The memory 1202 may include one or more computer-readable storage media.The computer-readable storage medium may be non-transient. The memory1202 may further include a high-speed random access memory and anon-volatile memory, for example, one or more disk storage devices orflash storage devices. In some embodiments, the non-transientcomputer-readable storage medium in the memory 1202 is configured tostore at least one instruction, and the at least one instruction isconfigured to be executed by the processor 1201 to perform the followingsteps:

obtaining, based on data of a plurality of target frames correspondingto a target time slice, a first target parameter that needs to be met bya camera in the target time slice, the first target parameter includingat least one of a first position parameter or a first scaling parameter;

determining a target operation (e.g., movement and scaling) speed of thecamera in the target time slice based on the first target parameter, aninitial operation (e.g., movement and scaling) speed of the camera inthe target time slice, a time interval corresponding to the target timeslice, and a time-speed change magnification curve, the target operation(e.g., movement and scaling) speed including at least one of a targettranslation speed or a target scaling speed; and

controlling the camera to move based on the time-speed changemagnification curve, the initial operation (e.g., movement and scaling)speed, and the target operation (e.g., movement and scaling) speed.

In some embodiments, the processor is configured to perform thefollowing steps:

performing sampling processing on the data of the target framescorresponding to the target time slice, to obtain a sampling parametercorresponding to each target frame;

setting a weight value for each target frame according to a distancebetween a timestamp and a start timestamp of the target time slice; and

determining the first target parameter that needs to be met by thecamera in the target time slice based on the sampling parametercorresponding to each target frame and the weight value corresponding toeach target frame.

In some embodiments, the sampling parameter corresponding to each targetframe includes a sampling position parameter, and the processor isconfigured to perform the following steps:

obtaining a center position parameter of an interaction object in eachtarget frame based on the data of the target frames; and

determining the sampling position parameter corresponding to each targetframe based on the center position parameter of the interaction objectin each target frame and an assembly position parameter of theinteraction object.

In some embodiments, the sampling parameter corresponding to each targetframe includes a sampling scaling parameter, and the processor isconfigured to perform the following steps:

obtaining a distance parameter corresponding to each target frame basedon the data of the target frames;

determining a scaling change magnification corresponding to the distanceparameter based on a distance-scaling change magnification curve; and

determining the sampling scaling parameter corresponding to each targetframe based on the scaling change magnification.

In some embodiments, the processor is configured to perform thefollowing steps:

obtaining a steering angle corresponding to the target time slice basedon a first operation (e.g., movement and scaling) direction and a secondoperation (e.g., movement and scaling) direction;

determining a steering mixed coefficient corresponding to the steeringangle;

updating the initial operation (e.g., movement and scaling) speed basedon the steering mixed coefficient, to obtain an updated initialoperation (e.g., movement and scaling) speed; and

determining the target operation (e.g., movement and scaling) speed ofthe camera in the target time slice based on the first target parameter,the updated initial operation (e.g., movement and scaling) speed, thetime interval corresponding to the target time slice, and the time-speedchange magnification curve.

In some embodiments, the processor is configured to perform thefollowing steps:

obtaining a change parameter of the camera in the target time slicebased on a second target parameter that has been met by the camera inthe target time slice and the first target parameter, where the secondtarget parameter includes at least one of a second position parameter ora second scaling parameter;

obtaining a point value corresponding to the time-speed changemagnification curve;

and

determining the target operation (e.g., movement and scaling) speed ofthe camera in the target time slice based on the change parameter, theinitial operation (e.g., movement and scaling) speed, the time intervalcorresponding to the target time slice, and the point valuecorresponding to the time-speed change magnification curve.

In some embodiments, the processor is configured to perform thefollowing steps:

dividing a process of controlling the camera to move into a referencenumber of subprocesses;

determining a speed change magnification corresponding to any subprocessbased on a time parameter corresponding to the any subprocess and thetime-speed change magnification curve;

determining a sub-operation (e.g., movement and scaling) speedcorresponding to the any subprocess based on the initial operation(e.g., movement and scaling) speed, the target operation (e.g., movementand scaling) speed, and the speed change magnification corresponding tothe any subprocess; and

controlling the camera to move according to the sub-operation (e.g.,movement and scaling) speed corresponding to the any subprocess in atime interval corresponding to the any subprocess.

In some embodiments, the processor is further configured to perform thefollowing steps:

performing validity verification on the first target parameter based ona parameter change threshold; and

the determining a target operation (e.g., movement and scaling) speed ofthe camera in the target time slice based on the first target parameter,an initial operation (e.g., movement and scaling) speed of the camera inthe target time slice, a time interval corresponding to the target timeslice, and a time-speed change magnification curve includes:

determining the target operation (e.g., movement and scaling) speed ofthe camera in the target time slice based on the first target parameterpassing the validity verification, the initial operation (e.g., movementand scaling) speed of the camera in the target time slice, the timeinterval corresponding to the target time slice, and the time-speedchange magnification curve.

In some embodiments, the processor is further configured to perform thefollowing steps:

updating the target operation (e.g., movement and scaling) speed basedon a correction coefficient, to obtain an updated target operation(e.g., movement and scaling) speed; and

the controlling the camera to move based on the time-speed changemagnification curve, the initial operation (e.g., movement and scaling)speed, and the target operation (e.g., movement and scaling) speed, tomeet the first target parameter includes:

controlling the camera to move based on the time-speed changemagnification curve, the initial operation (e.g., movement and scaling)speed, and the updated target operation (e.g., movement and scaling)speed, to meet the first target parameter.

In some embodiments, the time-speed change magnification curve is aBezier curve.

In some embodiments, the terminal may include a peripheral deviceinterface 1203 and at least one peripheral device. The processor 1201,the memory 1202, and the peripheral device interface 1203 may beconnected by using a bus or a signal cable. Each peripheral device maybe connected to the peripheral device interface 1203 by using a bus, asignal cable, or a circuit board. Specifically, the peripheral deviceincludes: at least one of a radio frequency (RF) circuit 1204, a touchdisplay screen 1205, a camera component 1206, an audio circuit 1207, apositioning component 1208, and a power supply 1209.

The peripheral device interface 1203 may be configured to connect the atleast one peripheral device related to input/output (I/O) to theprocessor 1201 and the memory 1202. In some embodiments, the processor1201, the memory 1202, and the peripheral device interface 1203 areintegrated on a same chip or circuit board. In some other embodiments,any one or two of the processor 1201, the memory 1202, and theperipheral device interface 1203 may be implemented on a single chip orcircuit board. This is not limited in this embodiment.

The RF circuit 1204 is configured to receive and transmit an RF signal,also referred to as an electromagnetic signal. The RF circuit 1204communicates with a communication network and other communicationdevices through the electromagnetic signal. The RF circuit 1204 convertsan electrical signal into an electromagnetic signal for transmission, orconverts a received electromagnetic signal into an electrical signal. Insome examples, the RF circuit 1204 includes: an antenna system, an RFtransceiver, one or more amplifiers, a tuner, an oscillator, a digitalsignal processor, a codec chip set, a subscriber identity module card,and the like. The RF circuit 1204 may communicate with another terminalby using at least one wireless communication protocol. The wirelesscommunication protocol includes, but is not limited to, a metropolitanarea network, different generations of mobile communication networks(2G, 3G, 4G, and 5G), a wireless local area network, and/or a Wi-Finetwork. In some embodiments, the RF 1204 may further include a circuitrelated to NFC, which is not limited in this disclosure.

The display screen 1205 is configured to display a user interface (UI).The UI may include a graph, text, an icon, a video, and any combinationthereof. When the display screen 1205 is a touch display screen, thedisplay screen 1205 is further capable of collecting touch signals on orabove a surface of the display screen 1205. The touch signal may beinputted to the processor 1201 as a control signal for processing. Inthis case, the display screen 1205 may be further configured to providea virtual button and/or a virtual keyboard that are/is also referred toas a soft button and/or a soft keyboard. In some embodiments, there maybe one display screen 1205, disposed on a front panel of the terminal.In some other embodiments, there may be at least two display screens1205 that are respectively disposed on different surfaces of theterminal or in a folded design. In still other embodiments, the displayscreen 1205 may be a flexible display screen disposed on a curvedsurface or a folded surface of the terminal. Even, the display screen1205 may be further set in a non-rectangular irregular pattern, namely,a special-shaped screen. The display screen 1205 may be prepared byusing materials such as a liquid-crystal display (LCD), an organiclight-emitting diode (OLED), or the like.

The camera component 1206 is configured to collect images or videos. Insome examples, the camera component 1206 includes a front-facing cameraand a rear-facing camera. Generally, the front-facing camera is disposedon the front panel of the terminal, and the rear-facing camera isdisposed on a back surface of the terminal. In some embodiments, thereare at least two rear cameras, which are respectively any of a maincamera, a depth-of-field camera, a wide-angle camera, and a telephotocamera, to achieve background blur through fusion of the main camera andthe depth-of-field camera, panoramic photographing and virtual reality(VR) photographing through fusion of the main camera and the wide-anglecamera, or other fusion photographing functions. In some embodiments,the camera component 1206 may further include a flash. The flash may bea monochrome temperature flash, or may be a double color temperatureflash. The double color temperature flash refers to a combination of awarm light flash and a cold light flash, and may be used for lightcompensation under different color temperatures.

The audio circuit 1207 may include a microphone and a speaker. Themicrophone is configured to acquire sound waves of a user and anenvironment, and convert the sound waves into an electrical signal toinput to the processor 1201 for processing, or input to the RF circuit1204 for implementing voice communication. For the purpose of stereosound collection or noise reduction, there may be a plurality ofmicrophones, respectively disposed at different portions of theterminal. The microphone may further be an array microphone or anomni-directional acquisition type microphone. The speaker is configuredto convert electric signals from the processor 1201 or the RF circuit1204 into sound waves. The speaker may be a conventional film speaker,or may be a piezoelectric ceramic speaker. When the speaker is thepiezoelectric ceramic speaker, the speaker not only can convert anelectric signal into acoustic waves audible to a human being, but alsocan convert an electric signal into acoustic waves inaudible to a humanbeing, for ranging and other purposes. In some embodiments, the audiocircuit 1207 may further include an earphone jack.

The positioning component 1208 is configured to position a currentgeographic location of the terminal, to implement a navigation or alocation based service (LBS). The positioning component 1208 may be apositioning component based on the Global Positioning System (GPS) ofthe United States, the BeiDou system of China, the GLONASS System ofRussia, or the GALILEO System of the European Union.

The power supply 1209 is configured to supply power to components in theterminal. The power supply 1209 may be an alternating current, a directcurrent, a primary battery, or a rechargeable battery. In a case thatthe power supply 1209 includes the rechargeable battery, therechargeable battery may support wired charging or wireless charging.The rechargeable battery may be further configured to support a fastcharging technology.

In some embodiments, the terminal may further include one or moresensors 1210. The one or more sensors 1210 include, but are not limitedto: an acceleration sensor 1211, a gyroscope sensor 1212, a pressuresensor 1213, a fingerprint sensor 1214, an optical sensor 1215, and aproximity sensor 1216.

The acceleration sensor 1211 can detect a magnitude of acceleration onthree coordinate axes of a coordinate system established based on theterminal. For example, the acceleration sensor 1211 can be configured todetect components of gravity acceleration on three coordinate axes. Theprocessor 1201 may control, according to a gravity acceleration signalacquired by the acceleration sensor 1211, the touch display screen 1205to display the UI in a landscape view or a portrait view. Theacceleration sensor 1211 may be further configured to acquire motiondata of a game or a user.

The gyroscope sensor 1212 may detect a body direction and a rotationangle of the terminal, and the gyroscope sensor 1212 may work with theacceleration sensor 1211 to acquire a 3D action performed by the user onthe terminal. The processor 1201 may implement the following functionsaccording to data acquired by the gyroscope sensor 1212: motion sensing(for example, the UI is changed according to a tilt operation of theuser), image stabilization during shooting, game control, and inertialnavigation.

The pressure sensor 1213 may be disposed at a side frame of the terminaland/or a lower layer of the display screen 1205. When the pressuresensor 1213 is disposed at the side frame of the terminal, a holdingsignal of the user for the terminal can be detected for the processor1201 to perform left and right hand recognition or quick operationsaccording to the holding signal acquired by the pressure sensor 1213.When the pressure sensor 1213 is disposed on the lower layer of thetouch display screen 1205, the processor 1201 controls, according to apressure operation of the user on the touch display screen 1205, anoperable control on the UI. The operable control includes at least oneof a button control, a scroll-bar control, an icon control, and a menucontrol.

The fingerprint sensor 1214 is configured to acquire a user'sfingerprint, and the processor 1201 identifies a user's identityaccording to the fingerprint acquired by the fingerprint sensor 1214, orthe fingerprint sensor 1214 identifies a user's identity according tothe acquired fingerprint. When identifying that the user's identity is atrusted identity, the processor 1201 authorizes the user to performrelated sensitive operations. The sensitive operations include:unlocking a screen, viewing encrypted information, downloading software,paying, changing a setting, and the like. The fingerprint sensor 1214may be disposed on a front surface, a back surface, or a side surface ofthe terminal. When a physical button or a vendor logo is disposed on theterminal, the fingerprint sensor 1214 may be integrated with thephysical button or the vendor logo.

The optical sensor 1215 is configured to acquire ambient lightintensity. In an embodiment, the processor 1201 may control the displaybrightness of the touch display screen 1205 according to the ambientlight intensity acquired by the optical sensor 1215. Specifically, whenthe ambient light intensity is relatively high, the display brightnessof the touch display screen 1205 is increased. When the ambient lightintensity is relatively low, the display brightness of the touch displayscreen 1205 is decreased. In another embodiment, the processor 1201 mayfurther dynamically adjust a camera parameter of the camera component1206 according to the ambient light intensity acquired by the opticalsensor 1215.

The proximity sensor 1216 is also referred to as a distance sensor andis generally disposed at the front panel of the terminal. The proximitysensor 1216 is configured to acquire a distance between the user and thefront face of the terminal. In an embodiment, when the proximity sensor1216 detects that the distance between the user and the front surface ofthe terminal gradually becomes small, the touch display screen 1201 iscontrolled by the processor 1205 to switch from a screen-on state to ascreen-off state. When the proximity sensor 1216 detects that thedistance between the user and the front surface of the terminalgradually increases, the touch display screen 1205 is controlled by theprocessor 1201 to switch from the screen-off state to the screen-onstate.

It is noted that a structure shown in FIG. 12 constitutes no limitationon the terminal. The terminal may include more or fewer components thanthose shown in the drawings, some components may be combined, and adifferent component deployment may be used.

In an exemplary embodiment, a server is further provided. Referring toFIG. 13, the server includes a processor 1301 and a memory 1302, and thememory 1302 stores at least one piece of program code. The at least onepiece of program code is loaded and executed by one or more processors1301, to implement any camera operation (e.g., movement and scaling)control method described above.

In an exemplary embodiment, a computer-readable storage medium isfurther provided, storing at least one piece of program code, the atleast one piece of program code being loaded and executed by a processorof a computer device to perform the following steps:

obtaining, based on data of a plurality of target frames correspondingto a target time slice, a first target parameter that needs to be met bya camera in the target time slice, the first target parameter includingat least one of a first position parameter or a first scaling parameter;

determining a target operation (e.g., movement and scaling) speed of thecamera in the target time slice based on the first target parameter, aninitial operation (e.g., movement and scaling) speed of the camera inthe target time slice, a time interval corresponding to the target timeslice, and a time-speed change magnification curve, the target operation(e.g., movement and scaling) speed including at least one of a targettranslation speed or a target scaling speed; and

controlling the camera to move based on the time-speed changemagnification curve, the initial operation (e.g., movement and scaling)speed, and the target operation (e.g., movement and scaling) speed.

In some embodiments, the processor is configured to perform thefollowing steps:

performing sampling processing on the data of the target framescorresponding to the target time slice, to obtain a sampling parametercorresponding to each target frame;

setting a weight value for each target frame according to a distancebetween a timestamp and a start timestamp of the target time slice; and

determining the first target parameter that needs to be met by thecamera in the target time slice based on the sampling parametercorresponding to each target frame and the weight value corresponding toeach target frame.

In some embodiments, the sampling parameter corresponding to each targetframe includes a sampling position parameter, and the processor isconfigured to perform the following steps:

obtaining a center position parameter of an interaction object in eachtarget frame based on the data of the target frames; and

determining the sampling position parameter corresponding to each targetframe based on the center position parameter of the interaction objectin each target frame and an assembly position parameter of theinteraction object.

In some embodiments, the sampling parameter corresponding to each targetframe includes a sampling scaling parameter, and the processor isconfigured to perform the following steps:

obtaining a distance parameter corresponding to each target frame basedon the data of the target frames;

determining a scaling change magnification corresponding to the distanceparameter based on a distance-scaling change magnification curve; and

determining the sampling scaling parameter corresponding to each targetframe based on the scaling change magnification.

In some embodiments, the processor is configured to perform thefollowing steps:

obtaining a steering angle corresponding to the target time slice basedon a first operation (e.g., movement and scaling) direction and a secondoperation (e.g., movement and scaling) direction;

determining a steering mixed coefficient corresponding to the steeringangle;

updating the initial operation (e.g., movement and scaling) speed basedon the steering mixed coefficient, to obtain an updated initialoperation (e.g., movement and scaling) speed; and

determining the target operation (e.g., movement and scaling) speed ofthe camera in the target time slice based on the first target parameter,the updated initial operation (e.g., movement and scaling) speed, thetime interval corresponding to the target time slice, and the time-speedchange magnification curve.

In some embodiments, the processor is configured to perform thefollowing steps:

obtaining a change parameter of the camera in the target time slicebased on a second target parameter that has been met by the camera inthe target time slice and the first target parameter, where the secondtarget parameter includes at least one of a second position parameter ora second scaling parameter;

obtaining a point value corresponding to the time-speed changemagnification curve; and

determining the target operation (e.g., movement and scaling) speed ofthe camera in the target time slice based on the change parameter, theinitial operation (e.g., movement and scaling) speed, the time intervalcorresponding to the target time slice, and the point valuecorresponding to the time-speed change magnification curve.

In some embodiments, the processor is configured to perform thefollowing steps:

dividing a process of controlling the camera to move into a referencenumber of subprocesses;

determining a speed change magnification corresponding to any subprocessbased on a time parameter corresponding to the any subprocess and thetime-speed change magnification curve;

determining a sub-operation (e.g., movement and scaling) speedcorresponding to the any subprocess based on the initial operation(e.g., movement and scaling) speed, the target operation (e.g., movementand scaling) speed, and the speed change magnification corresponding tothe any subprocess; and

controlling the camera to move according to the sub-operation (e.g.,movement and scaling) speed corresponding to the any subprocess in atime interval corresponding to the any subprocess.

In some embodiments, the processor is further configured to perform thefollowing steps:

performing validity verification on the first target parameter based ona parameter change threshold; and

the determining a target operation (e.g., movement and scaling) speed ofthe camera in the target time slice based on the first target parameter,an initial operation (e.g., movement and scaling) speed of the camera inthe target time slice, a time interval corresponding to the target timeslice, and a time-speed change magnification curve includes:

determining the target operation (e.g., movement and scaling) speed ofthe camera in the target time slice based on the first target parameterpassing the validity verification, the initial operation (e.g., movementand scaling) speed of the camera in the target time slice, the timeinterval corresponding to the target time slice, and the time-speedchange magnification curve.

In some embodiments, the processor is further configured to perform thefollowing steps:

updating the target operation (e.g., movement and scaling) speed basedon a correction coefficient, to obtain an updated target operation(e.g., movement and scaling) speed; and

the controlling the camera to move based on the time-speed changemagnification curve, the initial operation (e.g., movement and scaling)speed, and the target operation (e.g., movement and scaling) speed, tomeet the first target parameter includes:

controlling the camera to move based on the time-speed changemagnification curve, the initial operation (e.g., movement and scaling)speed, and the updated target operation (e.g., movement and scaling)speed, to meet the first target parameter.

In some embodiments, the time-speed change magnification curve is aBezier curve.

In some embodiments, the computer-readable storage medium may be aread-only memory (ROM), a random access memory (random-access memory,RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, afloppy disk, an optical data storage device, and the like.

It is noted that one or more modules, submodules, and/or units in thepresent disclosure can be implemented by processing circuitry, software,or a combination thereof, for example. The term module (and othersimilar terms such as unit, submodule, etc.) in this disclosure mayrefer to a software module, a hardware module, or a combination thereof.A software module (e.g., computer program) may be developed using acomputer programming language. A hardware module may be implementedusing processing circuitry and/or memory. Each module can be implementedusing one or more processors (or processors and memory). Likewise, aprocessor (or processors and memory) can be used to implement one ormore modules. Moreover, each module can be part of an overall modulethat includes the functionalities of the module.

“Plurality of” mentioned in this specification means two or more.“And/or” describes an association relationship for describing associatedobjects and represents that three relationships may exist. For example,A and/or B may represent the following three cases: Only A exists, bothA and B exist, and only B exists. The character “/” in thisspecification generally indicates an “or” relationship between theassociated objects.

The foregoing descriptions are merely exemplary embodiments of thisdisclosure, but are not intended to limit this disclosure. Anymodification, equivalent replacement, or improvement made within thespirit and principle of this disclosure shall fall within the protectionscope of this disclosure.

What is claimed is:
 1. A method for camera operation control in anelectronic device, comprising: obtaining, based on a plurality of framesassociated with a target time slice, a first target parameter to be metby a camera of a virtual camera system in the target time slice;determining a target operation speed of the camera in the target timeslice at least partially based on the first target parameter and atime-speed change magnification curve; and controlling the camera tooperate based on the target operation speed.
 2. The method according toclaim 1, wherein the obtaining the first target parameter comprises:determining at least a first sampling parameter associated with a firstframe in the plurality of frames, and a second sampling parameterassociated with a second frame in the plurality of frames; setting atleast a first weight value associated with the first frame according toa first distance between a first timestamp of the first frame and astart timestamp of the target time slice, and a second weight valueassociated with the second frame according to a second distance betweena second timestamp of the second frame and the start timestamp of thetarget time slice; and determining the first target parameter based onat least a first combination of the first sampling parameter and thefirst weight value and a second combination of the second samplingparameter and the second weight value.
 3. The method according to claim2, wherein the first target parameter comprises a first positionparameter, the target operation speed comprises a target translationspeed, the first sampling parameter comprises a sampling positionparameter, and the determining the first sampling parameter comprises:determining a center position parameter of one or more interactionobjects in the first frame; and determining the sampling positionparameter associated with the first frame based on the center positionparameter and an assembly position parameter of the one or moreinteraction objects.
 4. The method according to claim 2, wherein thefirst target parameter comprises a first scaling parameter, the targetoperation speed comprises a target scaling speed, the first samplingparameter comprises a sampling scaling parameter, and the determiningthe first sampling parameter comprises: determining a distance parameterof the first frame; determining a scaling change magnificationcorresponding to the distance parameter based on a distance-scalingchange magnification curve; and determining the sampling scalingparameter of the first frame based on the scaling change magnification.5. The method according to claim 1, wherein the determining the targetoperation speed of the camera comprises: determining a steering angleassociated with the target time slice based on a first operationdirection at a start of the target time slice and a second operationdirection at an end of the target time slice; determining a steeringmixed coefficient based on the steering angle; updating an initialoperation speed based on the steering mixed coefficient, to obtain anupdated initial operation speed; and determining the target operationspeed of the camera in the target time slice based on the first targetparameter, the updated initial operation speed, a time intervalcorresponding to the target time slice, and the time-speed changemagnification curve.
 6. The method according to claim 1, wherein thedetermining the target operation speed of the camera comprises:obtaining a change parameter of the camera in the target time slicebased on the first target parameter and a second target parameter to bemet by the camera in the target time slice at a different time from thefirst target parameter; obtaining an integral value based on atime-speed change magnification curve; and determining the targetoperation speed of the camera in the target time slice based on thechange parameter, an initial operation speed, a time intervalcorresponding to the target time slice, and the integral value.
 7. Themethod according to claim 1, wherein the controlling the camera tooperate based on the target operation speed comprises: determining speedchange magnification values respectively associated with sub timeintervals of the target time slice based on the sub time intervals andthe time-speed change magnification curve; determining respectivesub-operation speed values associated with the sub time intervals basedon an initial operation speed, the target operation speed, and the speedchange magnification values associated with the sub time intervals; andcontrolling the camera to operate according to the sub-operation speedvalues associated with the sub time intervals in the respective sub timeintervals.
 8. The method according to claim 1, wherein after theobtaining the first target parameter, the method further comprises:performing a validity verification on the first target parameter basedon a parameter change threshold; and in response to a passing of thevalidity verification, determining the target operation speed of thecamera in the target time slice at least partially based on the firsttarget parameter.
 9. The method according to claim 1, wherein after thedetermining the target operation speed of the camera in the target timeslice, the method further comprises: updating the target operation speedbased on a correction coefficient, to obtain an updated target operationspeed; and the controlling the camera to operate based on the targetoperation speed comprises: controlling the camera to operate based onthe time-speed change magnification curve, an initial movement speed,and the updated target operation speed, to meet the first targetparameter.
 10. The method according to claim 1, wherein the time-speedchange magnification curve is a Bezier curve.
 11. An apparatus,comprising processing circuitry configured to: obtain, based on aplurality of frames associated with a target time slice, a first targetparameter to be met by a camera of a virtual camera system in the targettime slice; determine a target operation speed of the camera in thetarget time slice at least partially based on the first target parameterand a time-speed change magnification curve; and control the camera tooperate based on the target operation speed.
 12. The apparatus accordingto claim 11, wherein the processing circuitry is further configured to:determine at least a first sampling parameter associated with a firstframe in the plurality of frames, and a second sampling parameterassociated with a second frame in the plurality of frames; set at leasta first weight value associated with the first frame according to afirst distance between a first timestamp of the first frame and a starttimestamp of the target time slice, and a second weight value associatedwith the second frame according to a second distance between a secondtimestamp of the second frame and the start timestamp of the target timeslice; and determine the first target parameter based on at least afirst combination of the first sampling parameter and the first weightvalue and a second combination of the second sampling parameter and thesecond weight value.
 13. The apparatus according to claim 12, whereinthe first target parameter comprises a first position parameter, thetarget operation speed comprises a target translation speed, the firstsampling parameter comprises a sampling position parameter, and theprocessing circuitry is configured to: determine a center positionparameter of one or more interaction objects in the first frame; anddetermine the sampling position parameter associated with the firstframe based on the center position parameter and an assembly positionparameter of the one or more interaction objects.
 14. The apparatusaccording to claim 12, wherein the first target parameter comprises afirst scaling parameter, the target operation speed comprises a targetscaling speed, the first sampling parameter comprises a sampling scalingparameter, and the processing circuitry is configured to: determine adistance parameter of the first frame; determine a scaling changemagnification corresponding to the distance parameter based on adistance-scaling change magnification curve; and determine the samplingscaling parameter of the first frame based on the scaling changemagnification.
 15. The apparatus according to claim 11, wherein theprocessing circuitry is configured to: determine a steering angleassociated with the target time slice based on a first operationdirection at a start of the target time slice and a second operationdirection at an end of the target time slice; determine a steering mixedcoefficient based on the steering angle; update an initial operationspeed based on the steering mixed coefficient, to obtain an updatedinitial operation speed; and determine the target operation speed of thecamera in the target time slice based on the first target parameter, theupdated initial operation speed, a time interval corresponding to thetarget time slice, and the time-speed change magnification curve. 16.The apparatus according to claim 11, wherein the processing circuitry isconfigured to: obtain a change parameter of the camera in the targettime slice based on the first target parameter and a second targetparameter to be met by the camera in the target time slice at adifferent time from the first target parameter; obtain an integral valuebased on a time-speed change magnification curve; and determine thetarget operation speed of the camera in the target time slice based onthe change parameter, an initial operation speed, a time intervalcorresponding to the target time slice, and the integral value.
 17. Theapparatus according to claim 11, wherein the processing circuitry isconfigured to: determine speed change magnification values respectivelyassociated with sub time intervals of the target time slice based on thesub time intervals and the time-speed change magnification curve;determine respective sub-operation speed values associated with the subtime intervals based on an initial operation speed, the target operationspeed, and the speed change magnification values associated with the subtime intervals; and control the camera to operate according to thesub-operation speed values associated with the sub time intervals in therespective sub time intervals.
 18. The apparatus according to claim 11,wherein after the first target parameter is obtained, the processingcircuitry is configured to: perform a validity verification on the firsttarget parameter based on a parameter change threshold; and in responseto a passing of the validity verification, determine the targetoperation speed of the camera in the target time slice at leastpartially based on the first target parameter.
 19. The apparatusaccording to claim 11, wherein after the target operation speed of thecamera in the target time slice is determined, the processing circuitryis configured to: update the target operation speed based on acorrection coefficient, to obtain an updated target operation speed; andcontrolling the camera to operate based on the time-speed changemagnification curve, an initial movement speed, and the updated targetoperation speed, to meet the first target parameter.
 20. Anon-transitory computer-readable medium storing instructions which whenexecuted by a computer cause the computer to perform: obtaining, basedon a plurality of frames associated with a target time slice, a firsttarget parameter to be met by a camera of a virtual camera system in thetarget time slice; determining a target operation speed of the camera inthe target time slice at least partially based on the first targetparameter and a time-speed change magnification curve; and controllingthe camera to operate based on the target operation speed.